function save_info(p_fuseaction){
	if (verify(document.forms(0))){
		document.forms(0).fuseaction.value = p_fuseaction;
	} else {
		return;
	}
	document.forms(0).hdn_fisrt.value = eval(document.forms(0).hdn_fisrt.value) + 1;
	btn_save_onclick(p_fuseaction);
}
function rad_onclick(rad_obj,hdn_obj){
	hdn_obj.value = rad_obj.value;
}
function Update_record_status(p_fuseaction){
	if (document.forms[0].hnd_status.value == '')
		alert('Phải xác định kết quả thụ lý.');
	else{
		document.forms(0).fuseaction.value = p_fuseaction;
		document.forms(0).submit();
	}
}
function btn_query_onclick(){
	v_current_url = "index.php";
	v_record_id = document.forms(0).hdn_record_id.value;
	v_fuseaction = document.forms(0).fuseaction.value;
	v_recordtype_filter = document.forms(0).hdn_recordtype_filter.value;
	v_current_url = v_current_url + "?fuseaction=" + v_fuseaction + "&hdn_record_id=" + v_record_id + "&hdn_recordtype_filter=" + v_recordtype_filter + "&hdn_query_data=1"
	//alert (v_current_url); 
	window.location = v_current_url;
}
function btn_approve_leader_onclick(p_checkbox_obj, p_hidden_obj, p_fuseaction){
	if (!checkbox_value_to_list(p_checkbox_obj,",")){
		alert("Phải xác định hồ sơ.");
	}	
	else{
		document.forms(0).fuseaction.value = p_fuseaction;
		p_hidden_obj.value = checkbox_value_to_list(p_checkbox_obj,",");
		var x =  document.f_dsp_all_record_approved.sel_recordtype;
		document.f_dsp_all_record_approved.value = x.options[x.selectedIndex].text
		document.forms(0).submit(); 
	}	
}
function btn_handling_record_onclick(p_checkbox_obj, p_hidden_obj, p_fuseaction){
	if (!checkbox_value_to_list(p_checkbox_obj,",")){
		alert("Phải xác định hồ sơ.");
	}	
	else{
		document.forms(0).fuseaction.value = p_fuseaction;
		p_hidden_obj.value = checkbox_value_to_list(p_checkbox_obj,",");
		var x =  document.f_dsp_all_handling_record_.sel_recordtype;
		document.f_dsp_all_handling_record_.value = x.options[x.selectedIndex].text
		document.forms(0).submit(); 
	}	
}
function show_dialog_all_item_onclick(p_goto_url,p_fuseaction, p_text_name_obj, p_text_code_obj, p_hdn_obj, p_hdn_unit_id,p_hdn_handler_id_list){
	if (p_hdn_unit_id == ''){
	 alert ('Phải xác định phòng thụ lý hồ sơ.'); return;
	}
	//alert(p_hdn_unit_id);
	v_url =  p_goto_url + "?hdn_handle_agency_id="+p_hdn_unit_id +"&hdn_handler_id_list="+p_hdn_handler_id_list + "&fuseaction=" + p_fuseaction + "&modal_dialog_mode=1" + "&" + randomizeNumber();
	sRtn = showModalDialog(v_url,"","dialogWidth=420pt;dialogHeight=280pt;dialogTop=80pt;status=no;scroll=no;");
	if (!sRtn) return;
	arr_value = sRtn.split(_LIST_DELIMITOR);
	p_hdn_obj.value = arr_value[0];
	p_text_code_obj.value = arr_value[1];		
	p_text_name_obj.value = arr_value[2];
}
//---------------------------
function set_value_hidden(obj,obj_value){
	obj.value = obj_value;
}